﻿// JScript File
Cookie = {
	Get: function(__name)
	{
		var __start = document.cookie.indexOf(__name + "="); 
		var __length = __start + __name.length + 1;

		if ((!__start) && (__name != document.cookie.substring(0, __name.length)))
		{
			return null; 
		}

		if (__start == -1)
		{
			return null;
		}

		var __end = document.cookie.indexOf(";", __length);

		if (__end == -1)
		{
			__end = document.cookie.length;
		}

		return unescape(document.cookie.substring(__length, __end)); 
	},
	Set: function(__name, __value, __expires, __path, __domain, __secure)
	{
		var __cookieString = __name + "=" +escape(__value) +
		( (__expires) ? ";expires=" + __expires.toGMTString() : "") +
		( (__path) ? ";path=" + __path : "") +
		( (__domain) ? ";domain=" + __domain : "") +
		( (__secure) ? ";secure" : "");
		
		document.cookie = __cookieString;
	}
	 
}
function ClearCookie()
{
  Cookie.Set('treeview','');  
}

